<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>注册页面</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BABABA" >
  <tr>
    <td height="22" bgcolor="#F4F4F4"><a href="./">&nbsp;风雨讯</a> -&gt; 
      用户注册</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="12" height="266" valign="top">&nbsp;</td>
    <td ><table border="0" cellspacing="1" width="560" cellpadding="0" id="Reg" height="456" bgcolor="#99CCCC">
        <script language="JavaScript">
<!--
function PM_checkNumber(str) {
	text = "0123456789-+ ";
	for( i = 0; i < str.length; i++ ) {
		letter = str.charAt(i);
		if(text.indexOf(letter) < 0 )
			return false;
	}
	return true;
}
function PM_checkForm(form){
	if("" == form.username.value){
		alert("请填写用户名");
		form.username.focus();
		return false;
	}
	if("" == form.passwd.value){
		alert("请填写登录密码");
		form.passwd.focus();
		return false;
	}
	if (form.passwd.value.length < 4)
	{
			alert("密码长度不能小于4, 请重新输入！");
			form.passwd.focus();
			return false;
	}
	if("" == form.passwd2.value){
		alert("请确认登录密码");
		form.passwd2.focus();
		return false;
	}
	if(form.passwd.value != form.passwd2.value){
		alert("两次密码不一致");
		form.passwd.value = "";
		form.passwd2.value = "";
		form.passwd.focus();
		return false;
	}
	if("" == form.email.value){
		alert("请填写你的电子邮件");
		form.email.focus();
		return false;
	}
	if(form.telephone.value){
		if (!PM_checkNumber(form.telephone.value))
		{
			alert("请输入正确的联系电话！");
			form.telephone.focus();
			return false;
		}
	}
	if(form.mobile.value){
		if (!PM_checkNumber(form.mobile.value))
		{
			alert("请输入正确的联系手机！");
			form.mobile.focus();
			return false;
		}
	}
	return true;
}
//-->
</script>
        <form method="POST" action="#" name="Reg"  onsubmit="return PM_checkForm(this);">
 <tr bgcolor="#00CCFF">
            <td height="25" colspan="2" align="center">用户注册</td>
              </tr>
             <tr bgcolor="#FFFFFF">
             <td width="191" height="25" align="center">用 户 名：</td>
             <td width="366" bgcolor="#FFFFFF"><span class="inputclass_one">
               <input name="username" type="text" id="username" maxlength="20" />
             </span><font color="#FF0000">2-20个字符 *</font>			  </td>
    </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">密&nbsp;&nbsp;&nbsp; 
              码：</td>
            <td bgcolor="#FFFFFF">
              <span class="inputclass_one"><input name="passwd" type="password"id="passwd" maxlength="20"></span>
              <font color="#FF0000" >4-20个字符 *</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">确认密码：</td>
            <td bgcolor="#FFFFFF">
              <input name="passwd2" type="password"id="passwd2" maxlength="20" class="inputclass_one">
              <font color="#FF0000">4-20个字符 *</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">真实姓名：</td>
            <td bgcolor="#FFFFFF">
              <input name="realname" type="text" id="realname" maxlength="20" class="inputclass_one">            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">性&nbsp;&nbsp;&nbsp; 
              别：</td>
            <td bgcolor="#FFFFFF">
              <div class="inputclass_one">
                <input type="radio" value="男" checked name="sex">
                男&nbsp;&nbsp;&nbsp;
                <input type="radio" name="sex" value="女">
                女</div></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">电&nbsp;&nbsp;&nbsp; 
              话：</td>
            <td bgcolor="#FFFFFF">
              <input name="telephone" type="text"id="telephone" maxlength="13" class="inputclass_one">
              <font color="#FF0000">13个字符</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">手&nbsp;&nbsp;&nbsp; 
              机：</td>
            <td  bgcolor="#FFFFFF">
              <input name="mobile" type="text" id="mobile" maxlength="12" class="inputclass_one">
              <font color="#FF0000">限12个字符</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">E - mail：</td>
            <td bgcolor="#FFFFFF">
              <span class="inputclass_one"><input name="email" type="text" class="input1" id="email" size="30" maxlength="64"></span>
              <font color="#FF0000">*</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">地&nbsp;&nbsp;&nbsp; 
              址：</td>
            <td bgcolor="#FFFFFF">
              <input name="address" type="text" id="address" size="50" maxlength="100" class="inputclass_one"></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="25" align="center">邮&nbsp;&nbsp;&nbsp; 
              编：</td>
            <td bgcolor="#FFFFFF">
              <input name="zip" type="text"id="zip" maxlength="6" class="inputclass_one">
              <font color="#FF0000">6个字符</font></td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="130" align="center">其它说明：</td>
            <td >
              <textarea name="others" cols="50" rows="8" class="area1" id="others"></textarea>            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="30" colspan="2" align="center"><input name="Submit" type="submit"id="Submit" value="注册">
              &nbsp;&nbsp;&nbsp;
              <input name="Reset" type="reset" id="Reset" value="重置">            </td>
          </tr>
        </form>
      </table></td>
  </tr>
</table>
</body>
</html>
